import {
  createRouter,
  createWebHashHistory,
  RouteRecordRaw,
} from "vue-router";
export const constantRoutes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    component: () => import("../views/index.vue"),
  },
  {
    path: "/record",
    name: "record",
    component: () => import("../views/record/index.vue"),
  },
  {
    path: "/config",
    name: "config",
    component: () => import("../views/config/index.vue"),
  }
];
// createWebHistory(import.meta.env.BASE_URL)
// createWebHashHistory(import.meta.env.BASE_URL)
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: constantRoutes,
});
export default router;
